package com.xfhy.selectcity.adapter;

import com.ludashi.framework.adapter.BaseQuickAdapter;
import com.ludashi.framework.adapter.BaseViewHolder;
import com.xfhy.selectcity.R;
import com.xfhy.selectcity.data.Area;

import java.util.List;

/**
 * @author : xfhy
 * Create time : 2021/2/25 19:20
 * Description :
 */
public class SelectAreaAdapter extends BaseQuickAdapter<Area, BaseViewHolder> {

    public SelectAreaAdapter(List<Area> data) {
        super(R.layout.item_select_city, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, Area area, int i) {
        baseViewHolder.setText(R.id.tv_city_name, area.getCountry());
    }

}

